<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>koa-static</title>
  <link rel="stylesheet" href="css/basic.css"/>
</head>
<body>
  <h2 class="title">koa-art-template</h2>

  <h2>数据绑定</h2>
  <%= data.name %>
  <br>
  <%= 1 + 2 %>
  <hr>

  <h2>绑定html数据</h2>
  <%= data.h %>
  <%- data.h %>
  <hr>

  <h2>条件</h2>
  <% if(data.num > 10){ %>
    大于10
  <% } else {%>  
    小于等于10
  <% } %>
  <hr>

  <h2>循环数据</h2>
  <ul>
    <% for(let i=0;i<list.length;i++){ %>
      <li><%=list[i]%></li>
    <%}%>
  </ul>
  
  <% include('./public/footer.html') %>
</body>
</html>